<!DOCTYPE html>
<html>
	<head>
		<title>FPV Ground Station</title>
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
		
		<!--PYTHON-->
		<script type="text/python" src="systems.py"></script>
				
		<!--JQUERY-->
		<script src="js/jquery-1.6.2.min.js"></script>
		<script src="js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
		
		<!--GOOGLE-MAPS-->
		<script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
		
		<!--CSS-->
		<link href="css/main.css" rel="stylesheet" type="text/css"  />
		<link href="css/dark-hive/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
		
		<!--MY CODE-->
		<script src="js/globaluse.js" type="text/javascript"></script>
		<script src="js/aircraft.js" type="text/javascript"></script>
		<script src="js/haversine.js" type="text/javascript"></script>
		<script src="js/map.js" type="text/javascript"></script>
		<script src="js/pfd.js" type="text/javascript"></script>
		<script src="js/compass.js" type="text/javascript"></script>
		<script src="js/map_control.js" type="text/javascript"></script>
		<script src="js/sat.js" type="text/javascript"></script>
		<script src="js/betty.js" type="text/javascript"></script>
		<script src="js/pidControl.js" type="text/javascript"></script>
		<script src="js/apControl.js" type="text/javascript"></script>
		<script src="js/flightLogs.js" type="text/javascript"></script>
		<script src="js/sensorMonitor.js" type="text/javascript"></script>
	</head>
	<body onload="initialize(); initPFD();initCompass();">
		<div class="left side">
			<div id="camera">
				<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
				   width="720"
				   height="576"
				   rtsp-caching="80"
				   id="vlc" />
				<script type="text/javascript">
					function play(obj, uri) {
					    var obj = document.getElementById(obj);
					    obj.playlist.stop();
					    obj.playlist.add(uri,uri, " :rtsp-caching=140");
					    obj.playlist.play();
					}
					function stopVid(obj){
						var obj = document.getElementById(obj);
					    obj.playlist.stop();
					}
					play("vlc","rtsp://192.168.2.20:554/live/ch00_0");
				</script>
			</div>
			<canvas id="pfd" width="300" height="300"></canvas>
			<canvas id="compass" width="300" height="300"></canvas>
		</div>
		<div class="right side">
			<div id="map_canvas"></div>
			<div id="map_control" style="overflow: hidden;">
				<div class="tabs">
					<ul>
						<li><a href="#tab_map">Map</a></li>
						<li><div style="width: 8px;"></div></li>
						<li><a href="#tab_ap" id="tab_ap_button">AP</a></li>
						<li><a href="#tab_pid" id="tab_pid_button">PID</a></li>
						<li><a href="#tab_wp" id="tab_wp_button">WP</a></li>
						<li><div style="width: 8px;"></div></li>
						<li><a href="#tab_monitor" id="tab_monitor_button">Monitor</a></li>
						<li><a href="#tab_settings">Settings</a></li>
						<li class="right"><button id="maxMinMapCtrl"><span class="ui-icon ui-icon-arrow-4-diag"></span></button></li>
					</ul>
					<div id="tab_map">
						<div id="toolbar" class="ui-widget-header ui-corner-all">
							<b>Goto:</b>
							<span id="goto">
								<button id="gohome" name="goto">Home</button>
								<button id="gotobug" name="goto">Bug</button>
								<button id="gotoplane" name="goto">Plane</button>
							</span>
							<button id="lockonplane">Lock on Plane</button>
							<button id="hdgbug">Toggle Bug</button>
						</div>
						<div id="toolbar2" class="ui-widget-header ui-corner-all">
							<b>Sel:</b>
							<!--<button id="more">More</button>-->
							<button id="setgsloc">Set GS Location</button>
							<button id="moveBugToPlane">Bug -> P</button>
							<button id="moveBugToGS">Bug -> GS</button>
						</div>
					</div>
					<div id="tab_ap">
						<div id="ap_mode" class="radioset">
							<input id="ap_mode_standby" type="radio" name="ap_mode" /><label for="ap_mode_standby">Standby</label>
							<input id="ap_mode_indv" type="radio" name="ap_mode"/><label for="ap_mode_indv">Indv</label>
							<input id="ap_mode_wp" type="radio" name="ap_mode" /><label for="ap_mode_wp">WP</label>
							<input id="ap_mode_land" type="radio" name="ap_mode" /><label for="ap_mode_land">Land</label>
						</div>
						<h2>Individual holds</h2>
						<div id="ap_indv_settings" style="padding-left: 50px">
							<div id="ap_channel_roll" class="radioset">
								<input id="ap_roll_off" type="radio" name="ap_channel_roll" /><label for="ap_roll_off">Off</label>
							    <input id="ap_roll_roll" type="radio" name="ap_channel_roll" /><label for="ap_roll_roll">Roll</label>
							    <input id="ap_roll_heading" type="radio" name="ap_channel_roll" /><label for="ap_roll_heading">Heading</label>
						  	</div>
						  	<div id="ap_channel_pitch" class="radioset">
						  		<input id="ap_pitch_off" type="radio" name="ap_channel_pitch" /><label for="ap_pitch_off">Off</label>
						  		<input id="ap_pitch_pitch" type="radio" name="ap_channel_pitch" /><label for="ap_pitch_pitch">Pitch</label>
						  		<input id="ap_pitch_vrate" type="radio" name="ap_channel_pitch" /><label for="ap_pitch_vrate">V-Rate</label>
						  		<input id="ap_pitch_alt" type="radio" name="ap_channel_pitch"/><label for="ap_pitch_alt">Altitude</label>
						  	</div>
						  	<div id="ap_channel_throttle" class="radioset">
						  		<input id="ap_throttle_off" type="radio" name="ap_channel_throttle" /><label for="ap_throttle_off">Off</label>
						  		<input id="ap_throttle_on" type="radio" name="ap_channel_throttle" /><label for="ap_throttle_on">Throttle</label>
						  	</div>
						  	<div id="ap_channel_slip" class="radioset">
						  		<input id="ap_slip_off" type="radio" name="ap_channel_slip" /><label for="ap_slip_off">Off</label>
						  		<input id="ap_slip_on" type="radio" name="ap_channel_slip" /><label for="ap_slip_on">Slip</label>
						  	</div>
						</div>
						<h2>Setpoints</h2>
						<div id="ap_indv_setpoints">
							<table>
								<tr>
									<td>Roll: <input type="text" id="ap_setpoint_roll" /></td>
									<td>Heading:<input type="text" id="ap_setpoint_heading" /></td>
								</tr>
								<tr>
									<td>Pitch: <input type="text" id="ap_setpoint_pitch" /></td>
									<td>V-Rate:<input type="text" id="ap_setpoint_vrate" /></td>
									<td>Altitude:<input type="text" id="ap_setpoint_alt" /></td>
								</tr>
								<tr>
									<td>Throttle: <input type="text" id="ap_setpoint_throttle" /></td>
									<td>Slip: <input type="text" id="ap_setpoint_slip" /></td>
									<td><button id="ap_setpoint_save">Send</button></td>
								</tr>
							</table>
						</div>
					</div>
					<div id="tab_pid">
						<table id="pid_table">
							<tr class="bold">
								<td>Name</td>
								<td>P</td>
								<td>I</td>
								<td>D</td>
								<td>Max</td>
								<td>En</td>
								<td>Min</td>
								<td>En</td>
								<td>Inv</td>
								<td>Save</td>
							</tr>
							<tr id="pid_roll">
								<td>Roll</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="roll_maxEn" /><label for="roll_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="roll_minEn" /><label for="roll_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="roll_inv"/><label for="roll_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_heading">
								<td>Heading</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="hdg_maxEn" /><label for="hdg_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="hdg_minEn" /><label for="hdg_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="hdg_inv"/><label for="hdg_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_pitch">
								<td>Pitch</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="pitch_maxEn" /><label for="pitch_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="pitch_minEn" /><label for="pitch_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="pitch_inv" /><label for="pitch_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_vrate">
								<td>V-Rate</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="vrate_maxEn" /><label for="vrate_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="vrate_minEn" /><label for="vrate_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="vrate_inv" /><label for="vrate_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_altitude">
								<td>Altitude</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="alt_maxEn" /><label for="alt_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="alt_minEn" /><label for="alt_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="alt_inv" /><label for="alt_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_throttle">
								<td>Throttle</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button"  id="thr_maxEn" /><label for="thr_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="thr_minEn" /><label for="thr_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="thr_inv" /><label for="thr_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
							<tr id="pid_slip">
								<td>Slip</td>
								<td><input type="number" class="pid_p" /></td>
								<td><input type="number" class="pid_i" /></td>
								<td><input type="number" class="pid_d" /></td>
								<td><input type="number" class="pid_max" /></td>
								<td><input type="checkbox" class="pid_maxEn button" id="slip_maxEn" /><label for="slip_maxEn">En</label></td>
								<td><input type="number" class="pid_min" /></td>
								<td><input type="checkbox" class="pid_minEn button" id="slip_minEn" /><label for="slip_minEn">En</label></td>
								<td><input type="checkbox" class="pid_inv button" id="slip_inv" /><label for="slip_inv">Inv</label></td>
								<td><button class="pid_save">Save</button></td>
							</tr>
						</table>
					</div>
					<div id="tab_wp">
						<h1>Not implemented yet!</h1>
						<p>This is where waypoint information will go</p>
					</div>
					<div id="tab_monitor">
						<table>
							<tr>
								<td>Gyro X</td>
								<td><canvas id="canvas-gx" height="100" width="500"></canvas></td>
							</tr>
							<tr>
								<td>Gyro Y</td>
								<td><canvas id="canvas-gy" height="100" width="500"></canvas></td>
							</tr>
							<tr>
								<td>Gyro Z</td>
								<td><canvas id="canvas-gz" height="100" width="500"></canvas></td>
							</tr>
							<tr>
								<td>Accel X</td>
								<td><canvas id="canvas-ax" height="100" width="500"></canvas></td>
							</tr>
							<tr>
								<td>Accel Y</td>
								<td><canvas id="canvas-ay" height="100" width="500"></canvas></td>
							</tr>
							<tr>
								<td>Accel Z</td>
								<td><canvas id="canvas-az" height="100" width="500"></canvas></td>
							</tr>
						</table>
					</div>
					<div id="tab_settings">
						<div class="ui-widget-header ui-corner-all">
							<button onclick="play('vlc','rtsp://192.168.2.20:554/live/ch00_0');">Refresh Video</button>
							<button onclick="stopVid('vlc');">Stop Video</button>
							<button id="toggleSounds">Sounds</button>
							<button id="gpsinfo">GPS</button>
							<button id="autotruckerpage">Settings Page</button>
							<button id="openFlightLogs">Flight Logs</button>
						</div>
					</div>
				</div>
				<!--<table>
					<tr>
						<td><b><font color="white">Battery:</font></b></td>
						<td><b><font color="white">Wireless strength GS</font></b></td>
						<td><b><font color="white">Wireless strength Plane</font></b></td>
					</tr>
					<tr>
						<td><div id="battery"></div></td>
						<td><div id="wireless_strength_gs"></div></td>
						<td><div id="wireless_strength_p"></div></td>
					</tr>
				</table>-->
			</div>
		</div>
		
		
		
		<!--F-O-R-M-S-----------------------------------------------F-O-R-M-S-->
		<!--F-O-R-M-S-----------------------------------------------F-O-R-M-S-->
		<!--F-O-R-M-S-----------------------------------------------F-O-R-M-S-->
		<!--F-O-R-M-S-----------------------------------------------F-O-R-M-S-->
		<!--F-O-R-M-S-----------------------------------------------F-O-R-M-S-->
		
		
		<div id="gs-form" title="New Ground Station Location">
			<div class="ui-state-highlight ui-corner-all validateTips" style="margin-top: 20px; padding: 0 .7em;"> 
				<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
				<strong>Hey!</strong> Please specify a new location for the ground station</p>
			</div>
		
			<form>
			<fieldset>
				<label for="lat">Latitude</label>
				<input type="text" id="lat" class="text ui-widget-content ui-corner-all" />
				<label for="lon">Longitude</label>
				<input type="text" id="lon" class="text ui-widget-content ui-corner-all" />
			</fieldset>
			</form>
		</div>
		<div id="more-form" title="More Options">
			<div>
				<button id="gpsinfo">GPS Information Page</button>
				<button id="autotruckerpage">Settings Page</button>
				<button id="signalpage">Signal Page</button>
				<button id="checklistspage">Checklists</button>
			</div>
		</div>
		<div id="gps-form" title="GPS">
			<table>
				<tr>
					<td><label for="gps-valid">Valid</label></td>
					<td><input readonly="readonly" type="text" id="gps-valid" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-lat">Lat</label></td>
					<td><input readonly="readonly" type="text" id="gps-lat" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-lon">Lon</label></td>
					<td><input readonly="readonly" type="text" id="gps-lon" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-alt">Alt</label></td>
					<td><input readonly="readonly" type="text" id="gps-alt" class="text ui-widget-content ui-corner-all" /></td>
					<td>feet</td>
				</tr>
				<tr>
					<td><label for="gps-spd">Speed</label></td>
					<td><input readonly="readonly" type="text" id="gps-spd" class="text ui-widget-content ui-corner-all" /></td>
					<td>knots</td>
				</tr>
				<tr>
					<td><label for="gps-course">Course</label></td>
					<td><input readonly="readonly" type="text" id="gps-course" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-vs">Visual Satelites</label></td>
					<td><input readonly="readonly" type="text" id="gps-vs" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-tracking">Tracking Satelites</label></td>
					<td><input readonly="readonly" type="text" id="gps-tracking" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-pdop">PDOP</label></td>
					<td><input readonly="readonly" type="text" id="gps-pdop" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-hdop">HDOP</label></td>
					<td><input readonly="readonly" type="text" id="gps-hdop" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
				<tr>
					<td><label for="gps-vdop">VDOP</label></td>
					<td><input readonly="readonly" type="text" id="gps-vdop" class="text ui-widget-content ui-corner-all" /></td>
				</tr>
			</table>
			<canvas id="gps-vsdisp" width="1000" height="1000"></canvas>
		</div>
		<div id="autotrucker-form" title="Settings">
			<div class="accordion">
				<h1>Altimiter Settings</h1>
				<div>
					<!--<p style="text-decoration: underline;">Prefrence for PFD Altitude Readout:</p>-->
					<div class="radioset" id="pfdAltitudePref">
						<input type="radio" id="groundLevel" name="radioAltPfd" checked="checked" /><label for="groundLevel">Ground</label>
						<input type="radio" id="seaLevel" name="radioAltPfd" /><label for="seaLevel">Sea Level</label>
					</div>
					<!--<label for="groundLevel">Ground Level</label>-->
					<input type="text" id="groundLevelInput" class="ui-widget-content ui-corner-all" />
					<span class="buttonset" id="groundLevelButtons">
						<button id="setGroundLevel" name="groundLevelButtons">Set</button>
						<button id="resetGroundLevel" name="groundLevelButtons">Reset</button>
						<button id="currentGroundLevel" name="groundLevelButtons">Current</button>
					</span>
				</div>
				<h1>Sounds</h1>
				<div style="overflow: hidden;">
					<button id="testSounds">Test Sounds</button>
					<br /><br />
					<table style="overflow: hidden;">
						<tr>
							<td>
								<div class="radioset" id="soundToggle">
									<input type="radio" id="soundOn" name="radioSndTgl" checked="checked" /><label for="soundOn">On</label>
									<input type="radio" id="soundOff" name="radioSndTgl" /><label for="soundOff">Off</label>
								</div>
							</td>
							<td>
								Toggle Sound Alerts
							</td>
						</tr>
						<tr>
							<td><input id="terrainAlertEn" type="checkbox" /><label for="terrainAlertEn">Terrain Alert</label></td>
							<td><input id="terrainAlertAlt" type="text" class="ui-widget-content ui-corner-all" value="500" /></td>
						</tr>
						<tr>
							<td><input id="altCallouts" type="checkbox" checked="checked" /><label for="altCallouts">Altitude Callouts</label></td>
							<td></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<div id="signal-form" title="Signal Status">
			<h1>Ground Station</h1>
			<div>
				<table>
					<tr>
						<td>Signal</td>
						<td><input id="gs_signal" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>RSSI</td>
						<td><input id="gs_rssi" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>NoiseF</td>
						<td><input id="gs_noisef" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>TX Rate</td>
						<td><input id="gs_txrate" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>RX Rate</td>
						<td><input id="gs_rxrate" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>Frequency</td>
						<td><input id="gs_chan" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>Status</td>
						<td><input id="gs_gotit" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
				</table>
			</div>
			<h1>Plane</h1>
			<div>
				<table>
					<tr>
						<td>Signal</td>
						<td><input id="p_signal" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>RSSI</td>
						<td><input id="p_rssi" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>NoiseF</td>
						<td><input id="p_noisef" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>TX Rate</td>
						<td><input id="p_txrate" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>RX Rate</td>
						<td><input id="p_rxrate" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>Frequency</td>
						<td><input id="p_chan" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
					<tr>
						<td>Status</td>
						<td><input id="p_gotit" readonly="readonly" type="text" class="ui-widget-content ui-corner-all" /></td>
					</tr>
				</table>
			</div>
		</div>
		<div id="checklist-form" title="Checklists" class="form">
			<button id="open-before-startup-clst">Before startup</button><br />
			<button id="open-startup-clst">Startup</button><br />
			<button id="open-preflight-clst">Pre-Flight</button<br />
			<!--<button>Shutdown</button>-->
		</div>
		<div id="before-startup-clst-form" title="Before Startup Checklist" class="form">
			<h1>Aircraft</h1>
			<ul>
				<li>Plane Battery: Charged (12.6 for a 3S Battery)</li>
				<li>Plane Power: Off</li>
				<li>Controller: Off</li>
				<li>Motor Mount: Screws on tight &amp; secure</li>
				<li>Camera Mount: Secure</li>
				<li>Fuselage:
					<ul>
						<li>Obstructions: Clear</li>
						<li>Power Connections:
							<ul>
								<li>Battery to Power Splitter: Disconnected</li>
								<li>Power Splitter to ESC: Connected</li>
								<li>Power Splitter to Switch: Connected</li>
								<li>Power Splitter to Rocket: Connected</li>
								<li>Power Splitter to Camera: Connected</li>
								<li>Power Splitter to GPS: Connected (if installed)</li>
							</ul>
						</li>
						<li>Ethernet Connections:
							<ul>
								<li>Switch to Rocket: Connected</li>
								<li>Switch to Camera: Connected</li>
								<li>Switch to GPS: Connected (if installed)</li>
							</ul>
						</li>
						<li>Antennas: Plugged in &amp; Checked</li>
						<li>Radio connections:
							<ul>
								<li>CH1: Ailerons</li>
								<li>CH2: Elevator</li>
								<li>CH3: Throttle</li>
								<li>CH4: Rudder &amp; Nose Wheel</li>
							</ul>
						</li>
					</ul>
				</li>
				<li>Servos and Controll Surfaces: Free Moving</li>
				<li>Landing Gear: Secure (if installed)</li>
				<li>Wing: Secure</li>
			</ul>
			<h1>Controller</h1>
			<ul>
				<li>Plane Power: Off</li>
				<li>Throttle Cut: On (SW-B down)</li>
				<li>Radio: On</li>
				<li>Controller Voltage: Nominal (>9.5V)</li>
				<li>Model set to FPV-FL</li>
				<li>Dual Rates set to high (SW-D up)</li>
				<li>Timer set to flight time (10min, Settings -> Page B3.2</li>
				<li>Timer counts when SW-B is up</li>
			</ul>
			<h1>Application &amp; Computer</h1>
			<ul>
				<li>Network Location: ubnt</li>
				<li>Ground Station Rocket:
					<ul>
						<li>Ethernet Cable: Plugged In</li>
						<li>Battery voltage: Charged (12.6 for 3S battery)</li>
						<li>Battery or power source: On</li>
					</ul>
				</li>
				<li>Application: On</li>
			</ul>
		</div>
		<div id="startup-clst-form" title="Startup Checklist" class="form">
			<h1>RC Controlls</h1>
			<ul>
				<li>Plane Power: Off</li>
				<li>Controller: On</li>
				<li>Controller Throttle Kill: On (SW-B down)</li>
				<li>Controller Throttle Stick: Down</li>
				<li>Battery to Power Splitter: Connected [Stand away from prop]</li>
				<li>Primary Controlls and Surfaces test:
					<ul>
						<li>Thottle Run Up: Inactive</li>
						<li>Throttle Trim: Center</li>
						<li>Ailerons:
							<ul>
								<li>Center: Surfaces Level and Trimmed</li>
								<li>Right:
									<ul>
										<li>Right Aileron Surface: Down</li>
										<li>Left Aileron Surface: Up</li>
									</ul>
								</li>
								<li>Left:
									<ul>
										<li>Right Aileron Surface: Up</li>
										<li>Left Aileron Surface: Down</li>
									</ul>
								</li>
							</ul>
						</li>
						<li>Elevator:
							<ul>
								<li>Center: Surfaces Level and Trimmed</li>
								<li>Down: Elevator Surface Up</li>
								<li>Up: Elevator Surface Down</li>
							</ul>
						</li>
						<li>
							Rudder:
							<ul>
								<li>Center:
									<ul>
										<li>Surfaces: Level and Trimmed</li>
										<li>Nose Wheel: Centered</li>
									</ul>
								</li>
								<li>Right:
									<ul>
										<li>Nose Wheel: Right</li>
										<li>Rudder: Right</li>
									</ul>
								</li>
								<li>Left:
									<ul>
										<li>Nose Wheel: Left</li>
										<li>Rudder: Left</li>
									</ul>
								</li>
							</ul>
						</li>
						<li>Throttle (Run Up):
							<ul>
								<li>Anchor Plane via Tail</li>
								<li>Controller Throttle Stick: Down</li>
								<li>Controller Throttle Kill: Disengaged</li>
								<li>Breif run up to 10%: Prop spins correct direction</li>
								<li>Throttle to 50%: No Vibrations or Problems</li>
								<li>Throttle to 100%: No Vibrations or Problems</li>
								<li>Controller Throttle Stick: Down</li>
								<li>Controller Throttle Kill: Enabled</li>
								<li>Thottle Run Up: Inactive</li>
							</ul>
						</li>
					</ul>
				</li>
			</ul>
			<h1>Application</h1>
			<ul>
				<li>Comm (if set up):
					<ul>
						<li>Ground Station:
							<ul>
								<li>Status: Good</li>
								<li>Signal: Good</li>
								<li>RSSI: &lt; -80</li>
							</ul>
						</li>
						<li>Aircraft:
							<ul>
								<li>Status: Good</li>
								<li>Signal: Good</li>
								<li>RSSI: &lt; -80</li>
							</ul>
						</li>
					</ul>
				</li>
				<li>Camera:
					<ul>
						<li>Video Stream: OK (if inactive, click the "Refresh Video" button)</li>
						<li>Video Stream Delay: OK (&lt; 0.5s)</li>
						<li>Video Alignment: Attiude OK</li>
					</ul>
				</li>
				<li>GPS: (if installed)
					<ul>
						<li>GPS Valid: OK</li>
						<li>Tracking Satelites (&#8805; 8)</li>
						<li>PDOP: OK</li>
						<li>Location: Correct</li>
					</ul>
				</li>
				<li>Ground Station Location on Maps: Set</li>
				<li>Heading Bug: Set to desired location (optional)</li>
				<li>Sound Preferences: Set</li>
				<li>Lock-on Plane: Set (reccomended)</li>
			</ul>
		</div>
		<div id="preflight-clst-form" title="Pre-Flight Checklist" class="form">
			<ul>
				<li>Throttle Stick: Down</li>
				<li>Throttle Kill: Enabled (SW-D Down)</li>
				<li>Timer Set to 00:00: Reset</li>
				<li>Dual Rates: ON (SW-D Up)</li>
				<li>Rocket Connection: OK</li>
				<li>Video Stream: Good</li>
				<li>GPS: OK (if installed)</li>
				<li>Lined Up: Aligned Properly on Runway</li>
				<li>Runway: Adequate surface, clearance, and length</li>
				<li>Trottle Kill: Disengaged (SW-D Up)</li>
				<li>Throttle: Full</li>
			</ul>
		</div>
		<div id="flight-log-form" title="Flight Logs" class="form">
			<table>
				<tr class="head">
					<td>Number</td>
					<td>Date / Time</td>
					<td>Durration</td>
					<td>KML</td>
					<td>CSV</td>
					<td>Delete</td>
				</tr>
			</table>
		</div>
	</body>
</html>